﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;

namespace PROJECT_BOMBER.BLL
{
    class PieceCollision : CollisionStrategy
    {
        public override void Collision(ElementPhysique element2, ElementMove element)
        {
            if (element2.Case.Intersects(element.Case))
            {
                if (!((Piece)element2).Catch)
                {
                    ((Piece)element2).Catch = true;
                    ((Character)element).Score += ((Piece)element2).Valeur;

                }
            }

        }

        public override void Collision(ElementMove element, ElementMove element2)
        {
        }
    }
}
